package com.yserp.project.erp.order.sampleregistration.domain;

import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.yserp.framework.aspectj.lang.annotation.Excel;
import com.yserp.framework.web.domain.BaseEntity;
import com.yserp.project.erp.common.anno.MybatisLikeSearch;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 样品登记对象 erp_sample_rigistration
 *
 * @author yserp
 * @date 2022-08-01
 */
@TableName("erp_sample_rigistration")
@Data
public class SampleRigistration extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private Long id;

    /**
     * 样品名称
     */
    @Excel(name = "样品名称")
    @MybatisLikeSearch(value = "sample_name")
    private String sampleName;

    /**
     * 公司名称
     */
    @Excel(name = "公司名称")
    @MybatisLikeSearch(value = "company_name")
    private String companyName;

    /**
     * 联系人
     */
    @Excel(name = "联系人")
    @MybatisLikeSearch(value = "contact_person")
    private String contactPerson;

    /**
     * 联系电话
     */
    @Excel(name = "联系电话")
    @MybatisLikeSearch(value = "phone")
    private String phone;

    /**
     * 邮寄地址
     */
    @Excel(name = "邮寄地址")
    @MybatisLikeSearch(value = "address")
    private String address;

    /**
     * 物流快递
     */
    @Excel(name = "物流快递")
    private String expressName;

    /**
     * 快递单号
     */
    @Excel(name = "快递单号")
    private String expressNo;

    /**
     * 邮寄费用
     */
    @Excel(name = "邮寄费用")
    private BigDecimal logisticsFee;

    /**
     * 物流付款人
     */
    @Excel(name = "物流付款人")
    private String payer;

    /**
     * 邮寄日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "邮寄日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date sendDate;

    /**
     * 签收日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "签收日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date receiveDate;

    /**
     * 签收反馈
     */
    @Excel(name = "签收反馈")
    private String feedback;

    /**
     * 转化标识
     */
    private String transFlag;

    /**
     * 删除标志（0代表存在 2代表删除）
     */
    @TableLogic
    private String delFlag;


}
